package exam.dao;

import exam.bean.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherDao {


    public List<Teacher> selectTeacher(Map<String,Object> map);

    /**
     * 插入数据
     * @param teacher
     * @return
     */
    public int insertTeacher(Teacher teacher);

    /**
     * 修改信息
     * @param teacher
     * @return
     */
    public int updateTeacher(Teacher teacher);


    /**
     * 删除数据
     * @param id
     * @return
     */
    public int deleteTeacher(int id);
}
